home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-03 | 2.8 KB | 92 lines | [TEXT/CWIE] |
- //========================================================================================
- //
- // File: Content.h
- // Release Version: $ ODF 1 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef CONTENT_H
- #define CONTENT_H
-
- #ifndef DEFINES_K
- #include "Defines.k"
- #endif
-
- // ----- Framework Includes -----
-
- #ifndef FWCONTNT_H
- #include "FWContnt.h"
- #endif
-
- //========================================================================================
- // Forward Declarations
- //========================================================================================
-
- class CAMSamplePart;
-
- //========================================================================================
- // class CAMSampleContent
- //========================================================================================
-
- class CAMSampleContent : public FW_CContent
- {
- //----------------------------------------------------------------------------------------
- // Initialization/Destruction
- //
- public:
- FW_DECLARE_AUTO(CAMSampleContent)
-
- CAMSampleContent(Environment* ev, CAMSamplePart* part);
- virtual ~CAMSampleContent();
-
- //----------------------------------------------------------------------------------------
- // Inherited API
- //
- public:
- virtual void Externalize(Environment* ev,
- ODStorageUnit* storageUnit,
- FW_EStorageKinds storageKind,
- FW_CCloneInfo* cloneInfo);
- virtual FW_Boolean Internalize(Environment* ev,
- ODStorageUnit* storageUnit,
- FW_EStorageKinds storageKind,
- FW_CCloneInfo* cloneInfo);
-
- //----------------------------------------------------------------------------------------
- // New API
- //
- public:
- FW_Boolean InternalizePartKind(Environment* ev, ODStorageUnit* sourceSU);
- FW_Boolean InternalizeText(Environment* ev, ODStorageUnit* sourceSU);
-
- void ExternalizePartKind(Environment* ev, ODStorageUnit* destinationSU);
- void ExternalizeText(Environment* ev, ODStorageUnit* destinationSU);
-
- const FW_CString& GetTextData();
- void SetTextData(Environment* ev, const FW_CString& newText);
- void ClearTextData(Environment* ev);
-
- FW_Boolean IsTextCentered();
- void CenterText(Environment* ev, FW_Boolean state);
-
- //----------------------------------------------------------------------------------------
- // Data Members
- //
- protected:
- FW_CString255 fTextData; // part content
- FW_Boolean fCentered; // part setting
- CAMSamplePart* fAMSamplePart;
- };
-
- //========================================================================================
- // Inlines
- //========================================================================================
-
- inline FW_Boolean CAMSampleContent::IsTextCentered()
- {
- return fCentered;
- }
-
- #endif